<?php

class EmailHelper{
    public static function sendInvoiceEmail($invoice)
    {
        $invoice = Invoice::model()->findByPk($invoice);      
        $body           = $this->renderPartial('invoice', array('invoice'=>$invoice), true);  
        return EmailUtil::sendEmail('CC New '.$invoice->invoicetype, null,$body);
    }
}
?>
